package com.cysyz.mylib.domain.exception;

public class BusinessException extends Exception{

	protected String message;
	public BusinessException(String message, Throwable cause) {
		super(message, cause);
		this.message = message;
	}

	public BusinessException(String message) {
		this(message, null);
	}
	
	@Override
	public String getLocalizedMessage() {
		return message;
	}

}
